package com.barneyx.mshinfoplatform.entity.enums;

import lombok.Getter;

/**
 * 相关事件
 */
@Getter
public enum EEventType {
    EVENT_INFO_CREATE_AUDIT(10001, "EVENT_INFO_CREATE_AUDIT", "信息平台信息发布审核审核事件"),
    EVENT_INFO_UPDATE_AUDIT(10002, "EVENT_INFO_UPDATE_AUDIT", "信息平台修改信息审核审核事件"),
    EVENT_NEWS_AUDIT(20001, "EVENT_NEWS_AUDIT", "信息平台新闻发布审核事件"),
    EVENT_STORE_AUDIT(30001, "EVENT_STORE_AUDIT", "信息平台商家入驻审核事件"),


    //后台管理相关
    EVENT_ADMIN_OPTION(50001, "EVENT_ADMIN_OPTION", "后台管理员相关的日志"),

    EVENT_ADMIN_LOGIN_SUCCESS(50002, "EVENT_ADMIN_LOGIN_SUCCESS", "后台管理员登陆成功事件"),
    EVENT_ADMIN_LOGIN_FAILD(50003, "EVENT_ADMIN_LOGIN_FAILD", "后台管理员登陆失败事件"),
    ;

    private final int code;
    private final String value;
    private final String desc;

    public boolean equals(EEventType eventType) {
        return true;
    }

    public String getValue() {
        return this.value;
    }


    EEventType(int code, String value, String desc) {
        this.code = code;
        this.value = value;
        this.desc = desc;
    }
}
